﻿using Microsoft.EntityFrameworkCore;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 盘点单
    /// </summary>
    public partial class TStocktakingOrderDetail
    {
        /// <summary>
        /// 订单明细主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 盘点单Id
        /// [
        /// </summary>
        /// 
        
        public int OrderId { get; set; }
        /// <summary>
        /// 盘点单号
        /// </summary>
        public string OrderSn { get; set; }
        /// <summary>
        /// 仓位Id
        /// </summary>
        public int? CellId { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        public string CellCode { get; set; }
        public int? CellDepthIndex { get; set; }
        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 盘点结果
        /// </summary>
        public string ExpectedStationIds { get; set; }
        /// <summary>
        /// 质量状态：0:待盘点，1.待执行,2，已执行
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 是否有货号详情
        /// </summary>
        public bool? HasSkuDetail { get; set; }
        /// <summary>
        /// 盘点数量
        /// </summary>
        public decimal? Qty { get; set; }
        /// <summary>
        /// 盈亏数量
        /// </summary>
        public decimal profitLostAmount { get; set; }
        /// <summary>
        /// 质量状态：0-待检；1-合格；2-不合格；
        /// </summary>
        public int? QualityState { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime? ExpireDate { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 供应商Id//
        /// </summary>
        public int? SupplierId { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 物料类型Id
        /// </summary>
        public int? MaterialTypeId { get; set; }
        /// <summary>
        /// 物料类型
        /// </summary>
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 当前步骤：0-未执行；1-出进行中；2-出完成；3-入进行中；4-入完成
        /// </summary>
        public int? Step { get; set; }
        public bool? IsNeedMove { get; set; }
        /// <summary>
        /// 监盘人id
        /// </summary>
        public int? InventoryId { get; set; }
        //提交人id
        public int? WarehouseId { get; set; }
    }
}
